﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default7.aspx.vb" Inherits="Default7" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>未命名頁面</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hiUID" runat="server" />
    <asp:HiddenField ID="hiDBName" runat="server" />
    <asp:ObjectDataSource ID="dbReplyStatistics" runat="server" SelectMethod="GetReplyStatistics"
        TypeName="AssetManage.BBL.AssetBBL">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlKind" Name="Kind" PropertyName="SelectedValue"
                Type="String" ConvertEmptyStringToNull="false" DefaultValue="" />
            <asp:ControlParameter ControlID="ddlAssetDef" Name="assetdef_id" PropertyName="SelectedValue"
                Type="String" ConvertEmptyStringToNull="false" DefaultValue="" />
            <asp:ControlParameter ControlID="txtDept" Name="dept" PropertyName="Text" Type="String"
                ConvertEmptyStringToNull="false" DefaultValue="" />
            <asp:ControlParameter ControlID="txtReturnDeadline1" Name="ReturnDeadLine1" PropertyName="Text"
                Type="DateTime" />
            <asp:ControlParameter ControlID="txtReturnDeadline2" Name="ReturnDeadLine2" PropertyName="Text"
                Type="DateTime" />
            <asp:ControlParameter ControlID="ddlHouseID" Name="HouseID" PropertyName="SelectedValue"
                Type="String" ConvertEmptyStringToNull="false" DefaultValue="" />
            <asp:ControlParameter ControlID="hiDBName" Name="dbName" PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="dbAssetDef" runat="server" SelectMethod="GetAssetType"
        TypeName="AssetManage.BBL.AssetBBL">
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
            <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
    <table>
        <tr>
            <td style="text-align: center">
                <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Size="24px" meta:resourcekey="lblTitle"></asp:Label>
            </td>
        </tr>
        <tr style="vertical-align: text-top">
            <td>
                <table border="1" width="900px">
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblComputeType" runat="server" meta:resourcekey="lblComputeType"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlKind" runat="server">
                                <asp:ListItem meta:resourcekey="ComputeType1"></asp:ListItem>
                                <asp:ListItem meta:resourcekey="ComputeType2"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Label ID="lblAssetType" runat="server" meta:resourcekey="lblAssetType"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlAssetDef" runat="server" DataSourceID="dbAssetDef" DataTextField="name"
                                DataValueField="id" Width="120px">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Label ID="lblDept" runat="server" meta:resourcekey="lblDept"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDept" runat="server" Width="80px"></asp:TextBox>
                        </td>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblReturnDeadline" runat="server" meta:resourcekey="lblReturnDeadline"></asp:Label>
                            </td>
                            <td style="width: 250px">
                                <asp:TextBox ID="txtReturnDeadline1" runat="server" Width="80px">2011/8/1</asp:TextBox>
                               
                                <asp:Label ID="Label5" runat="server" Text="~"></asp:Label>
                                <asp:TextBox ID="txtReturnDeadline2" runat="server" Width="80px">2011/8/31</asp:TextBox>
                             
                            </td>
                            <td align="right">
                                <asp:Label ID="lblHouseID" runat="server" meta:resourcekey="lblHouseID"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlHouseID" runat="server" Width="120px">
                                    <asp:ListItem meta:resourcekey="HouseID1"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="HouseID2"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="HouseID3"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="6">
                                &nbsp;<asp:LinkButton ID="btnQuery" runat="server" meta:resourcekey="btnQuery"></asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="btnExcel" runat="server" meta:resourcekey="btnExport"></asp:LinkButton>
                                <asp:Label ID="lblExportKind" runat="server" meta:resourcekey="lblExportKind" Visible="False"></asp:Label>
                                <asp:DropDownList ID="ddlExportKind" runat="server" Visible="False">
                                    <asp:ListItem>Excel</asp:ListItem>
                                    <asp:ListItem>CALC</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <TServerControl:TGridView ID="gvMain" runat="server" AllowHoverEffect="False" AllowHoverSelect="False"
                                    AllowPaging="True" AutoGenerateColumns="False" ShowFooterWhenEmpty="False" ShowHeaderWhenEmpty="True"
                                    SkinID="pager" TotalRowCount="0" Width="900px" DataSourceID="dbReplyStatistics"
                                    Visible="False">
                                    <Columns>
                                        <asp:BoundField meta:resourcekey="colDept" DataField="org_id" />
                                        <asp:BoundField meta:resourcekey="colDept1" DataField="emp_name" Visible="false" />
                                        <asp:BoundField meta:resourcekey="colAssetType" DataField="def_name" />
                                        <asp:BoundField meta:resourcekey="colReplyQty" DataField="TtlQty" ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colReplyOK" DataField="ReturnQty" ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colReplyRate" DataField="ReturnRate" DataFormatString="{0:N2}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colAvgDays" DataField="AvgDays" DataFormatString="{0:N2}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colQty1" DataField="Qty1" DataFormatString="{0:N0}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colQty21" DataField="Qty21" DataFormatString="{0:N0}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colQty22" DataField="Qty22" DataFormatString="{0:N0}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colQty4" DataField="Qty4" DataFormatString="{0:N0}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                        <asp:BoundField meta:resourcekey="colQty7" DataField="Qty7" DataFormatString="{0:N0}"
                                            ItemStyle-HorizontalAlign="Right">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:BoundField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblEmpty" runat="server" ForeColor="Red" meta:resourcekey="lblEmpty"></asp:Label>
                                    </EmptyDataTemplate>
                                </TServerControl:TGridView>
                            </td>
                        </tr>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
